#ifndef CENTRALWIDGET_H
#define CENTRALWIDGET_H

#include <QWidget>
#include "Tools/ToolState.h"

class ImageTabWidget;

class CentralWidget : public QWidget
{
    Q_OBJECT

public:
    CentralWidget(QWidget* parent = nullptr);
    virtual ~CentralWidget();

private:
    void initWidget();
    void connetSignalToSlots();

signals:
    void cursorPosChanged(QPoint& cursorpos);
    void imageAdded(int nID, const QString &imagename);
    void imageDeleted(int nID);
    void imageChanged(int nID);

public:
    void updateImageViewWidget();
    void addImageViewWidget(const QString &imagename);
    void setEnCurToolState(const ToolState &enCurToolState);

private:
    ImageTabWidget* m_pImageTabWidget;
};

#endif // CENTRALWIDGET_H
